// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import ElementUI from 'element-ui'
import http from '@/api/http'
import ports from '@/api/ports'
import VueCropper from 'vue-cropper'
import Video from 'video.js'

import 'element-ui/lib/theme-chalk/index.css'
import '@/common/styles/common.css'
import '@/common/styles/iconfont.css'
import '@/common/styles/reset.css'
import 'video.js/dist/video-js.css'
import common from '@/common/methods/courseDetail'
import store from './store'

Vue.prototype.common = common
Vue.prototype.http = http
Vue.prototype.ports = ports
Vue.prototype.$video = Video

Vue.config.productionTip = false
Vue.use(ElementUI)
Vue.use(VueCropper)

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
